// pages/chanpin/canpinsearch/canpinsearch.js
Page({
    search: function(){
        console.log(this.data.chanpinname);
    },
    bindKeyInput: function (e) {
        this.setData({
            chanpinname: e.detail.value
        })
      },
      chanpinxinagxi(e){
        wx.navigateTo({
          url: '../../chanpin/chanpinxiangxi/chanpinxiangxi?test=1',
        })
      },
    /**
     * 页面的初始数据
     */
    data: {
        chanpinname:'',
        chanpinlist:[],
        movies: [

            { url: '../../image/image1.png' },
     
            { url: '../../image/image1.png' },
     
            { url: '../../image/image1.png' }
     
          ],
          chanpin:[
            {name:"飞碟汽车",value:1},
            {name:"环卫装备",value:2},
            {name:"青储机械",value:3},
            {name:"拖拉机",value:4},
            {name:"三轮汽车",value:5},
            {name:"五小征",value:6}
          ],
          chanpinname:[
            {name:"飞碟奥驰HV3",value:1,id:"1",url:"../../../image/image1.png"},
            {name:"飞碟奥驰HV2",value:1,id:"2",url:"../../../image/image1.png"},
            {name:"飞碟奥驰T6",value:1,id:"3",url:"../../../image/image1.png"},
            {name:"飞碟奥驰T3",value:1,id:"4",url:"../../../image/image1.png"},
            {name:"飞碟奥驰T1",value:1,id:"5",url:"../../../image/image1.png"},
            {name:"飞碟奥驰T0",value:1,id:"6",url:"../../../image/image1.png"},
            {name:"飞碟奥驰T3",value:1,id:"7",url:"../../../image/image1.png"},
            {name:"飞碟奥驰T1",value:1,id:"8",url:"../../../image/image1.png"},
            {name:"飞碟奥驰T0",value:1,id:"9",url:"../../../image/image1.png"},
          ],
    
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad(options) {
            
    },

    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady() {

    },

    /**
     * 生命周期函数--监听页面显示
     */
    onShow() {

    },

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide() {

    },

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload() {

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh() {

    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom() {

    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage() {

    }
})